<template>
  <div class='container'>
     <div class="weui-cell">
         当前定位
     </div>
     <div  class="weui-cell">
        <div class="bigBtn btn" >
           <img src="/static/images/adr.png"/> 太原
        </div>
     </div>
     <div class="weui-cell">
         开通城市
     </div>
     <div>
         <div  class="btn" v-for="(item,idx) in adrList" @click="seladr(item.address)">{{item.address}}</div>
     </div>
  </div>
</template>

<script>
export default {
  components: {

  },

  data () {
    return {
       adrList:[
         {address:"大同"},
         {address:"阳泉"},
         {address:"大同"},
         {address:"长治"},
         {address:"古交"},
         {address:"晋城"},
         {address:"运城"},
         {address:"忻州"},
         {address:"朔州"},
         {address:"介休"},
         {address:"吕梁"},
       ]
    }
  },
  methods:{
     seladr(address){
         wx.setStorage({
           key: 'address',
           data: address,
           success: (result) => {
              wx.navigateBack({
                delta: 1
              });
           },
           fail: () => {},
           complete: () => {}
         });
           
     }
  },
  created () {
    
  },
  mounted  (){
    
  }
}
</script>
<style lang="scss" scoped>
.weui-cell{
    font-size:14px;
    font-weight:500;
    color:rgba(102,102,102,1);
}
.btn{
    display:inline-block;
    background:rgba(255,255,255,1);
    border:1px solid rgba(221,221,221,1);
    border-radius:20px;
    font-size:16px;
    font-weight:500;
    color:rgba(51,51,51,1);
    text-align:center;
    line-height:40px;
    padding:0 35px;
    margin-bottom:15px;
    margin-left:15px;
}
.bigBtn{
    width:100%;
    font-size:20px;
    font-weight:500;
    color:rgba(26,132,251,1);
    box-sizing:border-box;
    margin-left:0;
    img{
      width:16px;
      height:20px;
      margin-right:10px;
      vertical-align:middle;
    }
}
</style>
